Ext.define('yzmh.store.Chapters', {
    extend: 'Ext.data.Store',
    model: 'yzmh.model.Chapter',
    remoteSort: true,
    buffered: false,
    sorters: [{
        property: 'id',
        direction: 'DESC'
    }],
    proxy: {
        type: 'ajax',
        url: 'data/chapter.aspx?a=list',
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        },
        simpleSortMode: true
    }
});